package lm.concurrency.day5.atomicReference.compareWiths;

import lm.concurrency.day5.atomicReference.compareWiths.DecimalAccount;
import lm.concurrency.day5.atomicReference.compareWiths.DecimalAccountSafeCas;
import lm.concurrency.day5.atomicReference.compareWiths.DecimalAccountSafeLock;
import lm.concurrency.day5.atomicReference.compareWiths.DecimalAccountUnsafe;

import java.math.BigDecimal;

/**
 * @Auther: Min.Liu
 * @Description:
 * @Date: Created in 11:27 2024/11/7
 */
class AtomicReferencesTestDemo {
    public static void main(String[] args) {
        DecimalAccount.demo(new DecimalAccountUnsafe(new BigDecimal("10000")));
        DecimalAccount.demo(new DecimalAccountSafeLock(new BigDecimal("10000")));
        DecimalAccount.demo(new DecimalAccountSafeCas(new BigDecimal("10000")));
    }
}

